﻿using System.Windows;
using System.Windows.Controls;
using Apps.Yunwei.ViewModels;
namespace Apps.Yunwei
{
    public partial class AuthorityWidget : UserControl
    {
        public AuthorityWidget()
        {
            InitializeComponent();
            this.Loaded += WidgetLoad;
        }

        void WidgetLoad(object sender, RoutedEventArgs e)
        {
            (this.DataContext as AuthorityViewModel).SetConfig(this.GetConfigs());
            this.Loaded -= WidgetLoad;
        }
    }
}
